package GameWorld;

import javax.swing.*;

public class Bomb extends SeaObject{

    Bomb(int x,int y){
        super(9,12,x,y,3);
    }
    public void  move(){
        y+=speed;
    }
    public ImageIcon getImage(){
        return  Images.bomb;
    }
    public boolean isOutofBounds(){
        return this.y >= World.HEIGHT;//深水炸弹的y>=窗口的高   即为越界
    }
}
